<?php
/**
 *      [Eiltechmedia!] (C)2001-2099 MYSELF Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: main.php 22609 2011-05-16 01:55:33Z zhangchaofeng
 */
if(!isset($_SESSION)){
	session_start();
}
if(!$_SESSION['uid']){
	require_once "tmp/login.htm";exit;
}

include_once("classes/DB.class.php");
include_once("classes/page.class.php");
include_once("function/member.php");
include_once("function/util.func.php");
date_default_timezone_set('Asia/Shanghai');
$uid=$_SESSION['uid'];
$cid=$_SESSION['c_id'];
if($cid!=0):
	$where =" where id ='$cid' ";
else:
$where =" where 1=1 ";
endif;
$data = $GLOBALS["DB"]->result("SELECT id,c_name,c_address,c_tel,c_linkman FROM company $where ORDER BY id DESC ");
include 'tmp/main.htm';